<?php $this->beginWidget('application.widgets.report.makeReport'); ?>
<div>
<?php if($pagination->getCurrentPage()==0):?>
    <table>
        <tr>
            <td width="75">
                Date :
            </td>
            <td>
                <?php echo Yii::app()->format->formatDate($model->date);?>
            </td>
        </tr>
        <tr>
            <td width="75">
                Our ref :
            </td>
            <td>
                <?php echo strtoupper($model->ref); ?>
            </td>
        </tr>
    </table>
<?php endif; ?>
    <div>
        <table width="100%" cellpadding="3px" style="text-align:center; text-decoration: underline;">
            <tr>
                <td>
                    <h3><?php echo $model->subject; ?></h3>
                </td>
            </tr>
        </table>
    </div>
<table border="1" cellpadding="1" width="540">
    <tr align="center" style="font-size: 28px;font-weight: bold">
        <td width="100px">Marking</td>
        <td width="200px">Dimension</td>
        <td width="100px">Pkgs</td>
        <td width="70px">Weight</td>
        <td width="70px">M3</td>
    </tr>
    <?php foreach($data as $item): ?>
    <tr align="center" style="font-size: 24px" border="0">
        <td width="100px"><?php echo $item['marking'] ?></td>
        <td width="200px"><?php echo $item['dimension'] ?></td>
        <td width="100px"><?php echo $item['qty'];?></td>
        <td width="70px"><?php echo $item['wt'];?></td>
        <td width="70px"><?php echo $item['m3'];?></td>
    </tr>
    <?php endforeach;?>

</table>
</div>
<div align="right">
    <table>
        <tr align="right">
            <td align="right">
                Page:
            </td>
            <td align="left">
                <?php echo $pagination->getCurrentPage()+1; ?> / <?php echo $pagination->getPageCount(); ?>
            </td>
        </tr>
    </table>
</div>
<?php $this->endWidget();?>